// task 1B project 3 computer architecture IMT2272 at GUC 2011
#include <stdio.h> // printf

// prototype
int multi(int t1, int t2);

int main(int argc, char* argv[]) { // application entrypoint
    int tall1, tall2; // declare 2 int's
    tall1 = 2; // define them
    tall2 = 4; // ^^
    int tall3 = multi(tall1, tall2); // declare and define a third int,
    // and let it contain the return of function call 'multi(tall1,tall2)'
    printf("\n\ttall1=%i, tall2=%i, tall1*tall2=%i\n", tall1, tall2, tall3);
    // print summary
    return 0; // exit
}

int multi(int t1, int t2) { // take two int's as parameter
    int t3; // declare a 3rd int
    t3 = t1 * t2; // define 3rd int as containing result of multiplication 
    // of t1 and t2
    return t3; // return t3
}
